import request from '@/utils/request'

// 查询设备基础台账列表
export function listEquipmentBook(query) {
  return request({
    url: '/equipmentBook/equipmentBook/list',
    method: 'get',
    params: query
  })
}

// 查询设备基础台账详细
export function getEquipmentBook(equipmentId) {
  return request({
    url: '/equipmentBook/equipmentBook/' + equipmentId,
    method: 'get'
  })
}

// 新增设备基础台账
export function addEquipmentBook(data) {
  return request({
    url: '/equipmentBook/equipmentBook',
    method: 'post',
    data: data
  })
}

// 修改设备基础台账
export function updateEquipmentBook(data) {
  return request({
    url: '/equipmentBook/equipmentBook',
    method: 'put',
    data: data
  })
}

// 删除设备基础台账
export function delEquipmentBook(equipmentId) {
  return request({
    url: '/equipmentBook/equipmentBook/' + equipmentId,
    method: 'delete'
  })
}
